import { _decorator, Button, Component, find, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('TestButton')
export class TestButton extends Component {
    @property(Button) testBtn: Button = null!;

    start() {
        this.testBtn.node.on(Button.EventType.CLICK, () => {
            const gm = find('Canvas').getComponent('PokerGameManager');
            gm.testDealCards();
            // gm.testAIPlay(); // 可选测试AI
        });
    }
}


